<tagLib name="strends" />
<include file="Public:header" />
<div class="handle-btns">
	<strends:linkBtn text="{%RETURN_LIST}" href="{:Cookie::get('returnUrl')}" />
</div>
<form method='post' id="form" name="form" action="{:U(MODULE_NAME.'/update')}">
<table cellpadding="4" cellspacing="0" border="0" class="table-form">
	<tr>
		<th width="150">{%NAME}</th>
		<td><input type="text" class="textinput requireinput" name="name" value="{$vo.name}" /></td>
	</tr>
	<tr>
		<th>{%IMAGE}</th>
		<td><input type="text" class="textinput requireinput" name="image" value="{$vo.image}" /></td>
	</tr>
	<tr>
		<th>&nbsp;</th>
		<td><p>{%IMAGE_TIPS}</p></td>
	</tr>
	<tr>
		<th>{%DESC}</th>
		<td>
			<textarea name="desc" class="areainput" rows="3">{$vo.desc}</textarea>
		</td>
	</tr>
	<tr>
		<th>{%GIVE_TYPE}</th>
		<td>
			<p>
			<if condition="$vo['give_type'] eq 0">
			{%GIVE_TYPE_0}
			<elseif condition="$vo['give_type'] eq 1"/>
			{%GIVE_TYPE_1}
			</if>
			</p>
		</td>
	</tr>
	
	<tr class="auto_type_tr">
		<th>{%CONDITIONS}</th>
		<td>
			<span style=" font-family:Simsun;margin:0 5px 0 8px;">{%USER_LEVEL}&nbsp;>&nbsp;= </span>
			<input type="text" class="textinput" name="ulevel" size="3" value="{$vo['ulevel']}" />&nbsp;&nbsp;
			<select name="conditions" id="conditions" disabled="disabled">
				<option value="read" <if condition="$vo['conditions'] eq 'read'">selected="selected"</if> isContinue='1'>{%CONDITIONS_CONTINUE_READ}</option>
				<option value="read_day" <if condition="$vo['conditions'] eq 'read_day'">selected="selected"</if> isContinue='1'>{%CONDITIONS_CONTINUE_READ_DAY}</option>
				<option value="collect" <if condition="$vo['conditions'] eq 'collect'">selected="selected"</if> isContinue='1'>{%CONDITIONS_CONTINUE_COLLECT}</option>
				<option value="share" <if condition="$vo['conditions'] eq 'share'">selected="selected"</if> isContinue='1'>{%CONDITIONS_CONTINUE_SHARE}</option>
				<option value="comment" <if condition="$vo['conditions'] eq 'comment'">selected="selected"</if> isContinue='1'>{%CONDITIONS_CONTINUE_COMMENT}</option>
				<option value="lifestyle" <if condition="$vo['conditions'] eq 'lifestyle'">selected="selected"</if> isContinue='1'>{%CONDITIONS_CONTINUE_LIFESTYLE}</option>
				<option value="lifetrips" <if condition="$vo['conditions'] eq 'lifetrips'">selected="selected"</if> isContinue='1'>{%CONDITIONS_CONTINUE_LIFETRIPS}</option>
				<option value="comment_user" <if condition="$vo['conditions'] eq 'comment_user'">selected="selected"</if> isContinue='1'>{%CONDITIONS_CONTINUE_COMMENT_USER}</option>
				<option value="share_user" <if condition="$vo['conditions'] eq 'share_user'">selected="selected"</if> isContinue='1'>{%CONDITIONS_CONTINUE_SHARE_USER}</option>
				<option value="new_user" <if condition="$vo['conditions'] eq 'new_user'">selected="selected"</if> isContinue='1'>{%CONDITIONS_CONTINUE_NEW_USER}</option>
			</select>
			<span style=" font-family:Simsun;margin:0 5px 0 8px; font-weight:700;">>&nbsp;= </span>
			<input type="text" class="textinput" name="confine" size="6" value="{$vo.confine}"/>
		</td>
	</tr>
	<tr>
		<th>{%USER_MISSION}</th>
		<td>
			<span style=" font-family:Simsun;margin:0 5px 0 8px;">{%USER_SCORE}：</span>
			<input type="text" class="textinput" name="uscore" size="3" value="{$vo.uscore}"/>&nbsp;&nbsp;
			<span style=" font-family:Simsun;margin:0 5px 0 8px;">{%USER_MEDIA}：</span>
			<select name="umid">
				<volist name='medals' id="v">
				<option value="{$v.mid}" <if condition="$vo['umid'] eq $v['mid']">selected="selected"</if>>{$v.name}</option>
				</volist>
			</select>
			
		</td>
		</td>
	</tr>	
	<tr class="auto_type_tr" <if condition="$vo['give_type'] eq 1">style="display:none;"</if>>
		<th>&nbsp;</th>
		<td><p>{%CONDITIONS_TIPS}</p></td>
	</tr>
	<tr>
		<th>{%EXPIRATION}</th>
		<td>
			<input type="text" class="textinput" name="expiration" size="6" value="{$vo.expiration}" />&nbsp;{%DAY}&nbsp;{%EXPIRATION_TIPS}
		</td>
	</tr>
	<!--<tr class="auto_type_tr continue_tr" <if condition="$vo['give_type'] eq 1 or !in_array($vo['conditions'],$continues)">style="display:none;"</if>>
		<th>{%EXPIRATION}</th>
		<td>
			<input type="text" class="textinput" name="expiration" size="6" value="{$vo.expiration}" />&nbsp;{%DAY}&nbsp;{%EXPIRATION_TIPS}
		</td>
	</tr>-->
	<tr>
		<th>{%SORT}</th>
		<td>
			<input type="text" class="textinput" name="sort" value="{$vo.sort}" />
		</td>
	</tr>
	<tr class="act">
		<th>&nbsp;</th>
		<td>
			<input type="hidden" name="mid" value="{$vo.mid}" />
			<input type="submit" class="submit_btn" value="{%SUBMIT}" />
			<input type="reset" class="reset_btn" value="{%RESET}" />
		</td>
	</tr>
</table>
</form>

<include file="Public:footer" />